home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-01-12 | 1.5 KB | 50 lines | [TEXT/GEOL] |
- Item 0099433 11-Jan-90 11:49
-
- From: MADA2 MacApp Dev Assoc, Curtis Faith
-
- To: D1950 CSG, Don Phillips,PRT
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Dimmed TextListView Items
-
- Linda,
-
- I have done something very similar to what you are requesting for the AppleLink
- filing application I am working on.
-
- What I needed was some way of indicating that a certain AppleLink should not be
- processed and saved. I have a button that Forgets an AppleLink. What this
- really involves is dimming the AppleLink's TextListView item. (I also X it out
- so that it is apparent that it will be forgotten)
-
- You need to do several things.
-
- 1) have some way of determining which items are dimmed, is there a list of
- Objects that relates to the TextListView etc. Some property of the list must
- determine the state dimmed or not, perhaps a field fIsDimmed.
-
- 2) OVERRIDE CanSelectItem to return FALSE for items that have the state that
- causes them to be dimmed (fIsDimmed is TRUE).
-
- 2) OVERRIDE DrawCell to do this:
-
- INHERITED DrawCell (aCell,aQDRect);
-
- IF ("fIsDimmed is TRUE for this item") THEN
- BEGIN
- PenPat(gray);
- PenMode(patBic);
- PaintRect(aQDRect); { dim the cells }
- PenNormal;
- END;
-
- I forget why exactly but it seemed that patBic and gray worked out the best for
- the dimming. I think it made it easier to read the items even when they were
- dimmed. You might also try patXor.
-
- I hope this helps,
-
- Curtis
-
-